package com.iemes.mapper;

import com.iemes.entity.CorrelationDetection;
import com.iemes.entity.MaterialQualityForMap;
import com.iemes.mapper.base.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MaterialQualityMapper  extends BaseMapper {
    List<MaterialQualityForMap> getAll();

    //模糊获取所有数据
    List<MaterialQualityForMap> getData(@Param("name") String name, @Param("conditions") String conditions);
    //获取单个数据
    List<MaterialQualityForMap> getName(@Param("code") String code);

    List<MaterialQualityForMap> getId(@Param("id") String id);
    //插入关联数据
    int insertData(@Param("detection_code") String detection_code,@Param("materialName") String materialName,@Param("record") String record,@Param("no_number") String no_number,@Param("qualified") String qualified,@Param("inlineCheckbox1") String inlineCheckbox1,@Param("materialId") String materialId);

    List<CorrelationDetection> getCd(@Param("detection_code") String detection_code);

    List<CorrelationDetection> getMaterialId(@Param("materialId") String materialId);

    int delCd(@Param("detection_code") String detection_code);
}
